/*
 * @Description:
 * @Author: Zhangx
 * @Date: 2023-08-02 15:58:38
 * @LastEditors: Zhang_xx
 * @LastEditTime: 2025-02-18 09:56:36
 */
import { createRouter, createWebHistory } from 'vue-router'
import View from '../LayOut/mainIndex.vue'
import Home from '../views/HomeView.vue'
import elTable from '../pages/elTable.vue'
// import SelectTest from '../pages/SelectTest.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: View,
      redirect:'/table',
      children: [
      {
          path: 'table',
          name: 'table',
          component: elTable
        },
        {
          path: 'home',
          name: 'home',
          component: Home
        },
        {
          path: 'user',
          name: 'user',
          component: () => import('../views/AboutView.vue')
        },
        {
          path: 'mall',
          name: 'mall',
          component: () => import('../views/mallView.vue')
        },
        {
          path:'/pageone',
          name: 'pageone',
          component: () => import('../views/other/pageOne.vue')
        },
        {
          path:'/pagetwo',
          name: 'pagetwo',
          component: () => import('../views/other/pageTwo.vue')
        }
      ]
    },
    {
      path: '/login',
       component: () => import('../views/Login/login-index.vue')
    },
    {
      path: '/edited',
      component:() => import('../views/edit/index.vue')
    }
  ]
})

export default router
